package com.imooc.trading_system.model;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author Feng zhaoxi
 * @since 2022-04-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("order_base")
public class OrderBaseDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    /**
     * 产品id
     */
    private Integer productId;

    /**
     * 产品单价
     */
    private BigDecimal productPrice;

    /**
     * 卖家user_id
     */
    private Integer sellerUserId;

    /**
     * 买家user_id
     */
    private Integer buyerUserId;

    /**
     * 物流公司
     */
    private String logistics;

    /**
     * 支付方式
     */
    private String payType;

    /**
     * 卖家发货地址
     */
    private String sellerAddress;

    /**
     * 买家收货地址
     */
    private String buyerAddress;

    /**
     * 订单评价分，满分5分
     */
    private Integer evaluate;

    /**
     * 订单状态
     */
    private Integer orderStatus;

    /**
     * 产品数量
     */
    private Integer buyCount;

    /**
     * 总价
     */
    private BigDecimal totalPrice;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    private String orderNo;

    private String buyerName;
    private String sellerName;
    private String buyerPhoneNumber;
    private String sellerPhoneNumber;
    private String BuyerToSellerEvaluation;
    private String SellerToBuyerEvaluation;
    private String logisticsNo;


}
